import cv2
image=cv2.imread('mountain.png')
image_gray=cv2.cvtColor(image,cv2.COLOR_BGR2GRAY)
athdMEAM=cv2.adaptiveThreshold(image_gray,255,cv2.ADAPTIVE_THRESH_MEAN_C,cv2.THRESH_BINARY,5,3)
athdGAUs=cv2.adaptiveThreshold(image_gray,255,cv2.ADAPTIVE_THRESH_GAUSSIAN_C,cv2.THRESH_BINARY,5,3)
cv2.imshow('Input',image)
cv2.imshow('image_Gray',image_gray)
cv2.imshow('MEAN_C',athdMEAM)
cv2.imshow('GAUSSIAN_C',athdGAUs)
cv2.waitKey()
cv2.destroyWindow()